import IAreaVO from '@/model/vo/area/IAreaVO'
import { IconRadio } from '@douyinfe/semi-icons'
import { ColumnProps } from '@douyinfe/semi-ui/lib/es/table'

export default [
  {
    title: '岗位名称',
    dataIndex: 'name',
  },
  { title: '备注', dataIndex: 'remark' },
  { title: '排序号', dataIndex: 'orderNo' },
  {
    title: '启用',
    dataIndex: 'enableFlag',
    render: (text: any, record: IAreaVO, index: number) => {
      return (
        <IconRadio
          title={record.enableFlag ? '启用中' : '禁用中'}
          className={record.enableFlag ? 'green' : 'red'}
        />
      )
    },
  },
] as ColumnProps<any>[]
